home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / msdos / s3tool10.zip / TSTSASK.BAT < prev   
DOS Batch File  |  1993-09-25  |  1KB  |  25 lines

  1. @echo off
  2. cls
  3. sask Name What_is_your_name?
  4. REM S3 ASK will create an environment variable called NAME with the users
  5. REM response to What is your name?  SASK will remove the underscores in the
  6. REM question.  Do not forget the underscores!!!!!!!
  7. REM SASK will create a batch file called SETSASK.BAT in the current directory
  8. REM which you can then execute whenever you want to.  This batch file contains
  9. REM the SET variablename=answer DOS command.  As you can see, this .BAT file
  10. REM asks the user for a name, executes the SESASK batch file, deletes the
  11. REM batch file and then issues the SET command by itself to allow you to see
  12. REM the environment table.  If you get an OUT OF ENVIRONMENT SPACE error message
  13. REM you will need to increase the size of your environment table in your
  14. REM CONFIG.SYS by adding the line SHELL=C:\DOS\COMMAND.COM /E:512 /P
  15. REM The /E:bbbb /P is the key part.  Essentially, you declare your command shell
  16. REM (in this case it is the copy of COMMAND.COM located in C:\DOS) and then
  17. REM use the /E:bytes to set the environment table size in bytes and the /P makes
  18. REM the change permanent.  Small note, SHELL can also define the COMSPEC
  19. REM variable by declaring it with the SHELL=C:\DOS\COMMAND.COM C:\DOS /E:512 /P
  20. REM command.  The C:\DOS (or where ever) sets COMSPEC----------^^^^^^
  21.  
  22. call setsask.bat
  23. del setsask.bat > nul:
  24. set
  25.